package com.aaa.entity.stock;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author aaa
 * @since 2020-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("b_stock")
@ApiModel(value="Stock对象", description="")
public class Stock implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "数据来源单号")
    private String billno;

    @ApiModelProperty(value = "货位id")
    private Long locatorid;

    @ApiModelProperty(value = "货位")
    private String locatorname;

    @ApiModelProperty(value = "货位编码")
    private String locatorcode;

    @ApiModelProperty(value = "商品id")
    private Long commodityid;

    @ApiModelProperty(value = "商品编码")
    private String commoditybar;

    @ApiModelProperty(value = "商品名称")
    private String commodityname;

    @ApiModelProperty(value = "总数量")
    private Integer cqty;

    @ApiModelProperty(value = "可用数量")
    private Integer uqty;

    @ApiModelProperty(value = "锁定数量")
    private Integer lqty;

    @ApiModelProperty(value = "库位状态 0 正常  1锁定")
    private String locatorstate;

    @ApiModelProperty(value = "仓库id")
    private Long warehouseid;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "创建人id")
    private Long createid;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private Date createtime;

    @ApiModelProperty(value = "修改人id")
    private Long updateid;

    @ApiModelProperty(value = "修改人")
    private String updator;

    @ApiModelProperty(value = "修改时间")
    private Date updatetime;


}
